package com.sjzd.server.service;

import com.sjzd.server.pojo.Employee;
import com.baomidou.mybatisplus.extension.service.IService;
import com.sjzd.server.pojo.RespPageBean;

import java.time.LocalDate;
import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author sjzd
 * @since 2021-02-21
 */
public interface IEmployeeService extends IService<Employee> {
    /**
     * 分页查询员工信息
     *
     * @param employee
     * @param beginDateScope
     * @param curPage
     * @param pageSize
     * @return
     */
    RespPageBean page(Employee employee, LocalDate[] beginDateScope, Integer curPage, Integer pageSize);

    /**
     * 获取新工号
     *
     * @return
     */
    String getWorkID();

    /**
     * 获取员工信息
     *
     * @param id
     * @return
     */
    List<Employee> getEmployee(Integer id);
}
